package cate.game.cross.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBCross;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "本服跨服数据&配置 の 返回")
public class CrossLocalResp implements MsgOutput {
    @NoteField(value = "跨服功能是否开启")
    public boolean enabled;

    @NoteField(value = "本服的世界等级")
    public int worldLevel;

    public CrossLocalResp(){

    }

    public CrossLocalResp(boolean enabled, int worldLevel) {
        this.enabled = enabled;
        this.worldLevel = worldLevel;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBCross.DATA_RESP;
    }
}
